package edu.sctu.practice.class02.lvchang.test08;

/**
 * Created by Administrator on 2015/10/10.
 */
public class Car extends Vehicles {

    public Car(String brand, String color) {
        super(brand, color);

    }

    public int seats = 4;

    public void showCar() {
        System.out.println("brand:" + brand + " " + "color" + color);
    }

    public static void main(String[] args) {
        Car car = new Car("劳斯莱斯", "红色");
        car.showCar();
        System.out.println("座位数：" + car.seats);
    }
}
